Skip to content

Fix reproducible Windows build by stripping COFF symbol table#2085

Merged
edouardparis merged 1 commit intowizardsardine:14.xfrom
edouardparis:backport_2084
Apr 9, 2026
Merged

Fix reproducible Windows build by stripping COFF symbol table#2085
edouardparis merged 1 commit intowizardsardine:14.xfrom
edouardparis:backport_2084

Conversation

@edouardparis
Copy link
Copy Markdown
Member

The GNU linker appends a COFF symbol table to the PE binary containing auxiliary symbol data (sizes, section offsets) that depends on compilation ordering. Since Rust/LLVM processes codegen units in parallel, this metadata varies between builds even with identical inputs.

The COFF symbol table is not used at runtime (Windows ignores it) and modern debugging uses separate PDB files instead. Stripping it with --strip-all removes the non-deterministic data and also reduces binary size significantly

this is a backport of #2084

The GNU linker appends a COFF symbol table to the PE binary
containing auxiliary symbol data (sizes, section offsets) that depends on
compilation ordering. Since Rust/LLVM processes codegen units in
parallel, this metadata varies between builds even with identical inputs.

The COFF symbol table is not used at runtime (Windows ignores it) and
modern debugging uses separate PDB files instead. Stripping it with
--strip-all removes the non-deterministic data and also reduces binary
size significantly
Copy link
Copy Markdown
Member Author

@edouardparis edouardparis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Self-ACK cf7a17e
backport of 2080

@edouardparis edouardparis merged commit 649703e into wizardsardine:14.x Apr 9, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant